﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1.Repository
{
    public abstract class BaseRepository<T> : IRepository<T>
    {
        protected BaseRepository(string connectionString)
        {
            
        }

        public abstract IEnumerable<T> GetList();

        public abstract T GetByID(long id);

        public abstract void Create(T entity);

        public abstract void Update(T entity);

        public abstract void Delete(T entity);

        public void SaveChanges()
        {
            
        }
    }
}
